package com.service.impl;

import com.dao.IntegrationPackageDao;
import com.dao.impl.IntegrationPackageDaoImpl;
import com.entity.composite.DeveloperInfo;
import com.entity.composite.IntegrationPackageDownloadInfo;
import com.entity.composite.IntegrationPackageInfo;
import com.entity.element_relation.Element;
import com.entity.short_reviews.IntegrationPackageShortReviews;
import com.entity.version_relation.Version;
import com.service.IntegrationPackageService;

import java.util.List;

/**
 * @author wang_
 * @version 2024.3.4.1
 * @description
 * @date 2025/7/15
 */
public class IntegrationPackageServiceImpl implements IntegrationPackageService {
	private final IntegrationPackageDao dao = new IntegrationPackageDaoImpl();
	
	/// 获取精选整合包
	@Override
	public List<IntegrationPackageInfo> getSelectedIntegrationPackages() {
		return dao.getSelectedIntegrationPackages();
	}
	
	/// 获取整合包的基本信息
	@Override
	public IntegrationPackageInfo getBasicInformation(int integrationPackageId) {
		return dao.getBasicInformation(integrationPackageId);
	}
	
	/// 获取整合包开发者
	@Override
	public List<DeveloperInfo> getDeveloper(int integrationPackageId) {
		return dao.getDeveloper(integrationPackageId);
	}
	
	/// 获取整合包元素
	@Override
	public List<Element> getElement(int integrationPackageId) {
		return dao.getElement(integrationPackageId);
	}
	
	/// 获取整合包版本
	@Override
	public List<Version> getVersion(int integrationPackageId) {
		return dao.getVersion(integrationPackageId);
	}
	
	/// 获取整合包短评
	@Override
	public List<IntegrationPackageShortReviews> getShortReviews(int integrationPackageId) {
		return dao.getShortReviews(integrationPackageId);
	}
	
	/// 获取整合包下载
	@Override
	public List<IntegrationPackageDownloadInfo> getDownload(int integrationPackageId) {
		return dao.getDownload(integrationPackageId);
	}
	
}
